import { observable, action } from 'mobx'
import http from 'utils/http'

class ProfileStore {
  @observable profileList = []
  @observable creditBanerList = []

  @action
  async getProfile() {
    const res = await http.get('my/list')
    if (res.code === 1) {
      this.profileList = res.data.data
    }
  }
}


const profileStore = new ProfileStore()

export default profileStore
export { ProfileStore }
